package com.sm.service;

import java.util.List;

import com.sm.model.Assess;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sm.dao.AssessMapper;

@Service
public class AssessService {

	@Autowired
	private AssessMapper assessMapper;
	
	public int deleteByPrimaryKey(Integer assessId) {
		return assessMapper.deleteByPrimaryKey(assessId);
	};

    public int insert(Assess record) {
    	return assessMapper.insert(record);
    };

    public int insertSelective(Assess record) {
    	return assessMapper.insertSelective(record);
    };

    public Assess selectByPrimaryKey(Integer assessId) {
    	return assessMapper.selectByPrimaryKey(assessId);
    };

    public int updateByPrimaryKeySelective(Assess record) {
    	return assessMapper.updateByPrimaryKeySelective(record);
    };

    public int updateByPrimaryKey(Assess record) {
    	return assessMapper.updateByPrimaryKey(record);
    };
    
    public List<Assess> selectByGoodsId(Integer goodsId){
    	return assessMapper.selectByGoodsId(goodsId);
    }
}
